import androidx.compose.runtime.LaunchedEffect
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
import me.yricky.hid.desktop.AppState
import me.yricky.hid.desktop.Page

val appState by lazy { AppState() }

fun main() = application {
    Window(onCloseRequest = ::exitApplication, title = "Hid调试助手") {
        LaunchedEffect(appState){
            appState.mainNavDeviceList.refreshList()
        }
        appState.Page()
    }
}
